<!DOCTYPE html>
<html>
	<head>
		<?php echo $this->Html->charset(); ?>
		<title>
			<?php echo $title_for_layout; ?>
		</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />    
		<!--[if gt IE 8]>
			<meta http-equiv="X-UA-Compatible" content="IE=edge" />        
		<![endif]-->          
		<?php
		echo $this->Html->meta('icon');
		echo $this->Html->css(array(
			'bootstrap',
			'animate',
			'luckydraw'
		));
		echo $this->fetch('meta');
		echo $this->fetch('css');
		?>
		<?php
		echo $this->Html->script(array(
			'jquery-1.8.3.min',
			'jquery',
			'jquery.mousewheel.min',
			'bootstrap.min'
		));
		echo $this->fetch('script');
		?>
	</head>
	<body>
		<div id="container">
			<div id="head" style="position: relative;">
				<div class="container-fluid" style="text-align: center;">
					<a class="pull-left" href="<?php echo Router::url('/'); ?>">
						<?php echo $this->Html->image('logo.png'); ?>
					</a>
					<p class="pull-right">
						<?php if (($user = AuthComponent::user())) : ?>
							<?php echo __('Welcome %s', $user['last_name']); ?> 
							(<a href="<?php echo Router::url('/logout'); ?>"><?php echo __('logout'); ?></a>)
						<?php else : ?>
							<?php echo __('Exclusives suite à votre Achat'); ?> 
						<?php endif; ?>

					</p>
				</div>
				<div style="text-align: center; position: absolute; width: 300px; left: 200px; top: 10px;;font-size: 1.1em;">
					<a>Page des cartes cadeaux<br/></a>
				</div>
			</div>
			<div id="content">
				<?php
				echo $this->fetch('content');
				?>
			</div>
		</div>
	</body>
</html>
